package com.zhentao;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.zhentao.mapper")
public class UserApp {
    public static void main(String[] args) {
        // 统一时区为上海，防止 DB 时间偏移（JVM/JDBC）
        java.util.TimeZone.setDefault(java.util.TimeZone.getTimeZone("Asia/Shanghai"));
        System.setProperty("user.timezone", "Asia/Shanghai");
        SpringApplication.run(UserApp.class, args);
        System.out.println("User模块启动成功");
    }
}